package com.example.aidldemo.lib

import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint

class RoundedRectFooterDrawer : IFooterDrawer {
    private var rotateThreshold = 0f
    private val paint=Paint().apply {
        style=Paint.Style.STROKE
        isAntiAlias=true
        color=Color.parseColor("#FFFFFF")
    }
    override fun drawFooter(canvas: Canvas, left: Float, top: Float, right: Float, bottom: Float) {

       //
    }

    override fun updateDragState(dragState: Int) {

    }

    override fun shouldTriggerEvent(dragDistance: Float): Boolean {
        return dragDistance > rotateThreshold
    }
}